Skip to content

Add fields to dagrun endpoint - #23440

Merged
bbovenzi merged 2 commits into
apache:mainfrom
tirkarthi:dag-run-more-fields
May 3, 2022
Merged

Add fields to dagrun endpoint#23440
bbovenzi merged 2 commits into
apache:mainfrom
tirkarthi:dag-run-more-fields

Conversation

@tirkarthi

Copy link
Copy Markdown
Contributor

Add below fields to dagrun endpoint :

  • data_interval_start
  • data_interval_end
  • last_scheduling_decision
  • run_type

closes: #23415
related: #23415

* data_interval_start
* data_interval_end
* last_scheduling_decision
* run_type
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label May 3, 2022
"start_date": None,
"state": "queued",
"data_interval_end": "2020-11-10T08:25:56.939143+00:00",
"data_interval_start": "2020-11-10T08:25:56.939143+00:00",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use this opportunity to refactor these hardcoded dates? We could have logical_date and execution_date as constants and pass them instead of these dates?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ephraimbuddy, made this one and another test to use constants.

@github-actions github-actions Bot added the okay to merge It's ok to merge this PR as it does not require more tests label May 3, 2022
@github-actions

github-actions Bot commented May 3, 2022

Copy link
Copy Markdown
Contributor

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@bbovenzi
bbovenzi merged commit 6178491 into apache:main May 3, 2022
@ephraimbuddy ephraimbuddy added the type:improvement Changelog: Improvements label May 8, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API okay to merge It's ok to merge this PR as it does not require more tests type:improvement Changelog: Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add more fields to DAG Run API endpoints

3 participants